package com.wenxixuanwu.fruitstore.mapper;

import com.wenxixuanwu.fruitstore.entity.FruitType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface FruitTypeMapper {

    @Select("select * from fruittype")
    @Result(column = "k_id",property = "kId")
    @Result(column = "k_name",property = "kName")
    List<FruitType> selectByType();
}
